
export const hanldeShowModal = ({
	title = "确认提示",
	content = '这是一个模态弹窗',
	confirmFn = () => { },
	cancelFn = () => { }
} : {
	title ?: string;
	content ?: string;
	confirmFn ?: Function;
	cancelFn ?: Function;
}) => {
	uni.showModal({
		title: title,
		content: content,
		success: function (res : any) {
			if (res.confirm) {
				confirmFn();
			} else if (res.cancel) {
				cancelFn();
			}
		}
	});
}